home *** CD-ROM | disk | FTP | other *** search
- id ages, anAge;
- id selectedAge;
-
- // Create the array of choices
- - awake
- {
- ages = @("Over 50", "Under 20", "Just right");
- selectedAge = @"Just right";
- }
-
- // Pass the user's selected age to the next page for display
- - submitForm {
- [WOApp setResultMessage:[NSString stringWithFormat:@"Your age is '%@'", selectedAge]];
- return [WOApp pageWithName:@"Page2"];
- }
-